<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <div v-html="msg"></div>
        <div v-text="msg"></div>
        <div>{{msg}}</div>

        <!-- v-pre含有该指令的标签内部的语法不会被vue解析 -->
        <div v-pre>{{msg}}</div>
    </div>
</body>
<script src="./lib/vue.global.js"></script>
<script>
    const {createApp }=Vue 
    createApp({
        data() {
            return {
                msg:'<h1>缓缓飘落的枫叶</h1>'
            }
        },
    }).mount('#app')
</script>
</html>